package com.dao;

import com.pojo.Classify;
import com.pojo.Product;

import java.util.List;

public interface ProductDao {

    List<Product> findAll(int start,int limit);

    Product findByID(String id);

    int selectCount();

    int deleteP(String id);

    int addP(Product product);

    int update(Product product);

    List<Product> newProduct();

    List<Product> sortProduct(String productTypeID,int limit);

    List<Product> selectProducts(Classify classify);

    List<Product> selectSimilarGoodsByID(String id);
}
